package cn.onein.edu.web.vo;

public class DailyActionVO {

	private String introText;

	private String fullText;

	private String dailyNote;

	private String date;

	private String week;

	private String actionDate;

	private String babyDaily;

	private Integer actionResult;
	
	private Boolean babyDailyNull;

	public Boolean getBabyDailyNull() {
		return babyDailyNull;
	}

	public void setBabyDailyNull(Boolean babyDailyNull) {
		this.babyDailyNull = babyDailyNull;
	}

	public String getIntroText() {
		return introText;
	}

	public void setIntroText(String introText) {
		this.introText = introText;
	}

	/**
	 * 输出带格式的Html内容片段
	 * @return
	 */
	public String getFullText() {
		
		if (fullText == null) return null;

		StringBuffer sb = new StringBuffer(fullText.replaceAll("\r\n", "</p><p>"));

		sb.insert(0, "<p>").append("</p>");

		return sb.toString();
	}

	public void setFullText(String fullText) {
		this.fullText = fullText;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getWeek() {
		return week;
	}

	public void setWeek(String week) {
		this.week = week;
	}

	public String getDailyNote() {
		if (dailyNote == null) return null;

		StringBuffer sb = new StringBuffer(dailyNote.replaceAll("\r\n", "</p><p>"));

		sb.insert(0, "<p>").append("</p>");

		return sb.toString();
	}

	public void setDailyNote(String dailyNote) {
		this.dailyNote = dailyNote;
	}

	public String getActionDate() {
		return actionDate;
	}

	public void setActionDate(String actionDate) {
		this.actionDate = actionDate;
	}

	public String getBabyDaily() {
		return babyDaily;
	}

	public void setBabyDaily(String babyDaily) {
		this.babyDaily = babyDaily;
	}

	public Integer getActionResult() {
		return actionResult;
	}

	public void setActionResult(Integer actionResult) {
		this.actionResult = actionResult;
	}

}
